package com.yb.designpattern.structure.adapter;

/**
 * 使用了组合，相当于委派，是对象适配器
 */
public class Adapter implements Target{
	private Source source;
	public Adapter(Source source){
		this.source = source;
	}
	public void method1(){
		source.method1();
	}
	public void method2(){
		
	}
}
